<template>
  <div class="start hover-proite">
    <div >开始</div>
  </div>
</template>

<script>
export default {
  name: "Count",
  inject: ["getGraph", "getNode"],
  data() {
    return {
      num: 0,
    };
  },
  mounted() {
    const self = this;
    const node = this.getNode();
    console.log(node,'node')
    // 监听数据改变事件
    node.on("change:data", ({ current }) => {
      self.num = current.num;
    });
  },
  methods: {

  },
}
</script>

<style scoped lang="scss">
.start{
  width: 80px;
  height: 40px;
  line-height: 37px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  background: #ea3232;
  font-size: 14px;
  border: 2px solid transparent;
  border-radius: 30px;
}
</style>
